testing data validation