Refactored method AppTestBase._list_outputs() to remove redundant code.