These are the tester and functions for the sample number compressor function