refactoring: get more debug output from tests