added tests for mailer for new post and edited post

More tests to up code coverage.