Fixed slow running tests due to long running task.