ReadWhile unit-test