fixed random access in compression mode, new tests for compression mode