added new test for generate_message