fix messages tests