rename lifecycle to apps, port more tests