Made manager tests more robust.