Add functional tests
Implement the disk-based index dictionary.