Added support for TOC search. Added test script.