Refactor tests for snappy_pack