Lifetime test

Test for stay-alive mechanism.
Should run since commit: 4f9d16d56e06651397962bab7a13b8fc2779e93d (Make sure object life time is sufficient).