Testing appsetup

As part of 0.8 we should be thoroughly testing the app setup components:

 - [x] implemented test for running an AppSetup on install
 - [x] implemented test for running an AppSetup on uninstall
 - [ ] implemented test for running an AppSetup for specific version (and that it skips for another version)
 - [ ] review and eliminate duplication wherever possible