Add test implementation of lookupCD query.