change in spatial test
Add a spatial cost using arbitrary formulae