#213 remove duplicate test code