add texture packing test and fix inverted sanity check