fix lazy() being called before regex test