Added tests
Fix removal of old bundles for efficiency reasons.
Add travis test