added lifecycle test