fix spatialhash, readd parts of unittest for that