Refactored testcase remove duplicate