test lookup method