Fix tests raising a warning rather than a InvalidArgumentException
missing file
fix typos