[FIX] Fixing bug in test that caused the swift index test to not compile.

Note that it now fails since there is a bug with the swift index search if the pattern is empty.