Move test-mode to Agent class instead of Interface class