fix typo
add test for validator detection