Added tests for the EmailServiceFactory