Added API test script and test query files from the feature/testapi branch to this branch.
Fixed namespace and index name problems so that it works with the test data generated by dwc-indexer.