Adapt tests Convert path str to pathlib object, leftover from #469 Remove optional file path argument, it’s now mandatory