only load compress lib that is needed
added basic tests