Optimize test packages recording logic

Brian, I am just messing around to get familiar with how CI servers run the tests.
Eventually trying to bundle integration tests into a single jvm.

Probably will need more input from you or QA to get it done.

At least right now this can clean up some script logic with no logic change.