add tests for isJSON