updated tests to use structured requests for cli testing