BUG: fix the path issue when running test_debug