Added test for RationalResampler, and initialized sample_history with zeros