testing exceptions raised during decompress
testing exceptions raised during decompress_ptr
refactor the test code a little
test exceptions raised when packing an array
test exception raised by set_nthreads
check exception raised during unpack_array