Prevent duplication of /test directories in search