Consulting the Trello API and mocking it on tests