Fixed failing test shouldBeAbleToWriteAndReadBackMessages, although not an elegant solution. #26