testing exceptions raises during compression_ptr