add test case for validate_on_destroy