IDM-1228: Add unit test for checkValidMailAddress.