Added IsGenerated test