added automated testcases