tests: extract test/xs_json.coffee from test/xs_core.coffee