unit tests for futures