Fix test with futures