add unit-test for glob util