remove loop from test