adding test for messages validation