simplify test case with Stream.asFuture