Refactor Gists API
Gists API Tests