fix a bug.
add a test.

add a test 'calling the lookup instance method with two registries, and
the first missing', and adjust the test sequence.
Merge pull request #7 from clientlab/master

fix a bug