Fix issue with web socket test
Use constant for max entity size