Added some tests and fixed parsing to support the way monit sends email

Signed-off-by: Ben Smith <bsmith@pivotallabs.com>