Test the new agent method