added unit tests for zendesk api, moved zendesk api to separate class