index: Fix .throws() and .doesNotThrow()

#15 broke .throws() and .doesNotThrow() due to conflicting variable names.  This patch is nothing but renaming variables.
Merge pull request #17 from component/fix/throws-and-does-not-throw

index: Fix .throws() and .doesNotThrow()