fix test in edge and fix rails4 Gemfile