This commit includes the test cases for emails controller