add unit tests for build/scraper.js