Fixed a bug in the closest depot assignment and added some new test cases.
work done before Steve starts new idea
Merge branch 'sdev' into develop
Merge branch 'vdev' into develop