testing as_json