Add test case for parse_json()

Fix ordering of assert_eq for other tests.