TST: add an importance sampling scheme which may or not be buggy