Added arrayadapter for results and changed testcase state modelling