Validation and test cases