Removed use of assertCount() from this test as it causes infinite loops on Travis.
Merge pull request #2847 from sminnee/fix-travis-infinite-loop

Fix travis-specific infinite loop in 3.0