Add generic_agent unit test for loading masterfiles