Fix bug in Client.test() when using globs

Change-Id: I7f95ae954f05d4fb45333c3fe4bf5c1ea3880333