updated the email to use the sytem config one
fixing up some odd tests;
updated the result check because now we're returning booleans as we expect;
casting the pref_user to a zero-length string to prevent nulls from sneaking in;
Merge pull request #200 from caseysoftware/master

Minor cleanups and fixes