Added tests for Repository index magic.