tests for string validators