updated importance sampling testing