Port test for handler's life-cycle processing into master branch.