Added test for invalid credentials

This is the first half of dealing with #12.  Still needs support for SMTP