count tests throw exception