FIX: Don't crawl in test mode, raise correct exception when parameters
are missing