code refactor for test case update