issue #5932: add bindings and a testcase for query of chipmunk