You change the semantics of this method. Interestingly all test cases still work. But the implementation indeed did what the method name said. The index contains the whole repository tree and not only the staged files (http://book.git-scm.com/7_the_git_index.html).

Please introduce a new method, maybe isStaged, which returns true if the index content differs from the repo content.