Move assertCountEqual to separate class.