Fix rest of tests with new agent field
Use a normal user for many tests instead of a sysadmin
Define agent roles in settings
Test that required fields exist in data_dict and refactor api tests a bit