adding unit test for MailQueueHandler::getAffectedUsers()

refs #92