Adds tests for agent, api and settings