Added a test for observe for the new agent implementation.