added future stream andThen and flatmap tests