Updated testcases and Output