Added test code for a method to enable user to stop a query in process.