fixed compilation issue of testconsole