code for test case tc_3.1.1 added