added a test for JsonBuilderAgent.