Debugging error in test agent