Fix run_with_stack_context test.

This test would never fail because it didn't check the result of its
Future.  Thanks to Florian Ludwig for pointing this out.