glob test and path test fix