Optimized functional tests for message creation