Simplify indexOf tests
Merge pull request #12 from alexspeller/simplify-code

Simplify indexOf tests