Refactored test shouldBeAbleToWriteAndReadBackMessages.