Wrote more lifecycle tests.