Added test for testing construction of agents.