Added check and tests for message and part names