Fixed some errors in IntegrationTesting

Waiting for QueryEvaluator to be completed for fully functional
IntegrationTesting.