=htc #15560 close entity data stream eagerly + add more tests
=htc fix off-by-one error when creating strict entities for small payloads