add test for isValid without validator