Activity lifecycle testing