Removed unnecessary code statements from test case