Changed test framework to use inheritence and separate compression/decompression more cleanly.