updated program6.up test case