unittests: fixed private equal check to indexof