Test tidy and destroy

Add tests for tidy in application container test.
Fix tidy scenarios in lifecycle tests.
Merge pull request #6 from pmorie/dev/cartridge_refactor

Test tidy and destroy