Update agent integration test to work with randomized test order and parallelization