added tests for issue 59 - Edit User Mail Preferences.

P.S. Together with Bebe we were able to create this test :D
implemented changes as suggested by AndreiH's code review

I also added pep8 checks to Aptana, so I hope I won't have so many code
style comments from now on :)
Merge pull request #62 from alexrotaru/test_settings

added tests for issue 59 - Edit User Mail Preferences.