corrected expected test result
more fine grained logging
add deflate method