changes in QeryResult, added tests, changes in ProcessManager