more robust integer/short/char packing test