Update AgentControllerTest.java

fixing the test case "Save new agent with wrong codename"

it will fail in drone.io because the test exposed an error in the controller