[test] Added response counting.
[minor] Fixed random shizzle, so it doesn't close the connection until everything is written