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

#15 broke .throws() and .doesNotThrow() due to conflicting variable names.  This patch is nothing but renaming variables.