fix stuck connections when sending only header responses
small tests improvement