fixing slow test termination