Tests for lookup()