Test directory and file searching