Valid p-Values using Importance Sampling