PR Changes
method to get index of test case
PR- index method refactor
PR- refactor for test case state