added test for getFirstMessage