Added tests for the JSON serializer