moved the "print_debug" function into the test file