add options.basePath and tests