Fix errors in gemfile and syntax error in test.