Moved enum serializer out of TestEventSerializer to BaseSerializerFactory.
Added some test cases for classloader caching.