Add CDebug and tests for input file.