test glob function