Flush caches before running test
Move flushing code to search module