adding tests and validations for demographics