added unit tests to make sure that the limit of spots being returned in a search is correct

fixes SPOT-731