removed redundant test code