Added condition integration test to the agent_test.