Added tests for Repository index magic. Fixes #899.