added tests for lower case input
added cases to testCalcIndex function