Added template item search and tests.