change serializer to JSON and clear the tests