add bean lifecycle test