Add validator parameter to make test more strict.