Added test for gists.
Cleaned up tests.