Removed use of assertCount() from this test as it causes infinite loops on Travis.