Spec updated for checking invalid values