Use public Gemini API in CLI

/cc @SevInf @arikon
`fail` will make promise resolve to success after error handler, next `.then` will be executed and it will fail, beacause promise will no longer resolve to the tests status. Making `fail` statement last in chain should fix this.