Add `mask` as a parameter.

This is only used for the recent module and seems to be relatively
new as it doesn't seem to exist prior to 14.04.
Fix the tests to account for the changes in Ubuntu 14.04.
Merge pull request #353 from apenney/fix-14.04-tests

Fix 14.04 tests