updated testing code for tail compression to be stand alone