adding testResampling