added unit tests and validations for statuses