added fixed error in valid
fixed failing test