Testing component life cycle