Fix debugging method in test command