fix bug in testlookup