Code duplication reduction for new ImmediateFuture unit tests