Unit test for JSON facilities