Added test for res.mailer.update;
Refactor and version bump to 0.2.2;