Rewrote method AppTestBase._list_outputs().
- To provide useful error message.
- To use "with open" construct.