metrics query test with runids fix