agent: Updating tests for new API