MessageWriter test fix