implemented tests for cli and read_url