Added tests to the KeyIndex symbol table and modified it to use interfaces.