Test code for various resamplers