added missing assertion
moved app modification specs into lifecycle_spec