Added a test that validates parsing to/from json