adding tests splitting out cli to help testing