Updated EmailService unit tests. Did some refactoring on AppConfig.