Added a Gemfile and refactored token tests.