Tests: map, distance; fix arena test getTests

arena_tests.js had simply "getTests()" but I need each different test
file to have it's own getFooTests() function.
Moved distance to geometry.js
Fix & Test reduce()
Test flock functions: sum, getX, getY
Fix & Test aggregatedAdjustments