Added tests for NearestInSpan