Fix bug in SpatialCenterInitialisation

- The average position is now returned correctly.
- Added unit test.