add test case for lookup()