Rewriting test to hopefully fix jenkins error

Trying to fix jenkins error: ActiveRecord::StatementInvalid:
       PG::Error: ERROR:  current transaction is aborted, commands ignored
until end of transaction block
       : SELECT COUNT(*) FROM "content_view_definitions"
Merge pull request #1607 from daviddavis/fix_jenkins_cv

Trying to fix jenkins error