remove duplicate test function