add more tests for validation logic