add test code for lookup tables