adding common validations and test cases