Fixes traceback bubbling and unicode in tests/capabilities.py.