added test cases for models
Merge branch 'master' into TestCases
added test cases for mailer and some controller methods
build fixes for mailer