fixed broken test, added missing curlopts param to nearestobs