When searching for /test/path it was returning files in /test/path2. Fix by making sure to search for /test/path/