removed sleep from test