Added tests for Barnes-Hut