add lifecycle test