Fixing compaction crash by using executeQuery instead of executeUpdate
Add testGetNonExistingDocument

Properly set NSError* to nil

Remove pointless testForSqlTables

Add simple compaction test (testCompactSingleDoc).

Add more complicated compaction test (testGetCompactedDocumentRev)

Add test to delete document with old revision in testDeleteDocument