add specs for lifecycle class