Add lookupNS function and an associated hspec test.