tests and validations for backend