Rails 4 Edge and fix broken auth tests