Test result as generator with expected item count.