Make metrics tests independent of RUST_LOG env var (#16710)