Added tests for ElementHandlerFactory