scans benchmark: refactor for apprunner: add --test parameter to run tests individually; fix index scan query