Refactoring of install & uninstall tests
Improve dependencies tests by grouping with beforeStart() Fix for dependency cycle / throw error.
Fix to never remove top-level plugins that are dependencies + tests.

github: close #58
Refactoring of install & uninstall tests
CB-6143 Use events.emit() instead of require('../../plugman').emit()