Adding gemfile and ruby-version and fixing tests