Add unit tests for list and validations