added glob tests, fixed recursion bug