Fix test to match new order of <a> attributes.
Remove modules deprecated with Rails 4.