Added initial json-api test.