Linux/Tests: Fix freeing up of messages in MessageQApp