Added ticket validations and tests