improve validation spec