Adds CLI test
Adds callback for test running