Updated tests to use the mocha framework rather than vows.

Also added extra tests to check for invalid keys, invalid host and text that isn't spam.