added fold to FutureUtils, including tests