Fix have_and_belong_to_many assertion in Rails 4