removed redundant code from test