IndexOf formula: adding a simple unit test for indexOf function