Add a test for futures.