removes tmp/
adds integration test for searching for a term