Fix bugs in wildcard performance test