use assertCount in tests