adding some tests for the QueryBuilder validate method