fixed worker lifecycle test