added query test function, usage e.g. in api-docs, fixed JDBC typemap
bug.