test cases grouped and code formatting done sucess