Close result set in jdbc driver as well
Enhance test with serialization around QueryContext also
Set default parent dir properly