CLI and testing