Externalise the error domain for Query builder.
Add CDTQueryBuilderTests to Tests OSX target.
A few objective-c isms

- Don't use valueForKey
- Use convenience constructors
setUp/tearDown need to be at the top of tests.
Move index name and existence validation to common method