Add tests for string validator