Update AgentControllerTest.java

improving test case in AgentController to test the saving of a new agent with a wrong codename (too short, too long or null)