TESTS: fix some bugs in the tests for INQUIRY