Cleaned up gemfile.
Added tests.