Added unit tests for EmailView