Adding tests for DmMailerApi factories