updated to support bcc, cc, and client header. needs to be switched to phpunit to support travisci
updated test case, minor