Made the tests pass and making each test self-contained

Fixed tree.js not passing: changed '1e7bc7fba93aabc8c76ebea41918f9ad892141ed' to sha.
Added setUp and tearDown steps so that each step is starting with a clean slate and note (purposely) relying on previous steps.

Travis should be working again with this patch (fingers crossed).