Tests that command line api works.