Added test case and fixed a bug regarding compression of similar work
files (fixes #25). Also, better names for methods.