Unit tests for validations