[refactor] Remove chai and improve http requests on tests