Pack.java: behave more like pack.h
update PackTest.java