Added test for handling futures