Could you please update the test for this to use `assert_raise_message` to check that the message formatting works as expected?