Added test for singular occurence in classes and id.