fixed issue in Metropolis search test