Completed QueryCaseTestBase and Applied all integration tests.
Revised doc.