search command tests: clean up hard-coded paths and line numbers