Add a test for futures.
Merge pull request #97 from pjonsson/test-future

Add a test for futures.