CLN: refactor test suites for eval and query
CLN/COMPAT: use iterkv in pytables