add flexjson testing codes