add test for debug

ensure it is a noop function when debug no installed.
sed replace fullpaths in mocha html cov output.