add unit test for userid in messageid