Fix the RSpec test for the custom message modifications