add validation for Cook
refactoring validation test