Add a top level index creation functionality & tests