Added a test to test_smartAgent