Make tmfcore_cli testable

This pull request makes tmfcore_cli testable by adding a test index as a subrepository, by making sure that we correctly initialize the index, and by adding a test file.