FMS-277 - Add unittest for history and mail notifications