quadtree bugfix and updated tests