remove redundant test code