Fix missing argument

Event fire is called in getIndex() with 'foo' and an array. In the testGetIndex() it only contains an array.
Merge pull request #481 from alexw23/patch-1

Fix missing argument