Handle error when unable to read TOC.
Merge branch 'toc_error'
Add test implementation of lookupCD query.