Added test cases for compressor to improve testing coverage

As the title says just adding test case to improve the testing coverage.