InputTestDriver sleeps exactly until input loop emits all the test data

In order to avoid sleeping long, specify expected emits and then
InputTestDriver continuously sleeps very short so that input loop will emit all the test data.