Refining Test Cases
merged code