test framework
BUG in whitelist lookup code