Catch exception in pack test.