Fixed compression functions to properly handle >4gb compression
Modifying tests