IndexOf formula: adding a simple unit test

I have added a simple unit test for the indexOf formula