fix compression tests by optionally waiting for compression to finish when closing a tlogcollection
Lwt_buffer.wait_until_empty should really wait until empty
Merge pull request #170 from Incubaid/fix-test-compression

Fix test compression