added peters rect sinusoid to unit tests