Debug mode for tests, debug output in test cases