Fix in client.test() when using globs

Change-Id: I55d131cebb01eff76863b912f44b550c7e33a3eb