Added test case to check if empty messages are handled correctly.