add test for messageTime helper