1. - Fixed some parts of unit-testing and added a new tree test
2. - Fixed one problem with generating temporary snapshots for automatic restarts (removing dead accreted particle)