Added some tests against the json implementations just to assert on the correct behaviour.