Corrected TestDbAsyncEnumerator<T>

Corrected TestDbAsyncEnumerator<T> to accept delegate in constructor.
Also corrected test which was not working before.