Adding fix for duplicate test cases and feature to load agent jobs on agent restarts