isValid tests passing