implement cli tests in node