added validation_test code