code for test case tc_3.1.2 added