Extended and fixed int packer, added to unit tests