added CLI tests