Add AbstractDefaultElementFactoryTest test class
Add a style cleanup in setStyleNames
Cleanup some code