I spend way too much time this week on creating simple tests in Selenium. The problem was that my development environment wasn’t working right, so the tests were coming out wrong. I had to trace the problem through Mijoshop, the Joomla Mail libraries, PHPMailer, then finally Sendmail. It turns out that the fix was to simply add the sever hostname to /etc/hosts. The solution was here: http://superuser.com/questions/626205/sendmail-very-slow-etc-hosts-configuration/626219
A long way to go, and not many tests done yet.