Use count(:all) in testing to be friendly to Rails 4.1

See https://github.com/rails/rails/issues/11824 for the best explanation
of how counting has changed with explicit select clauses.