Add test for calling lifecycle events on an instance.