Avoid exceptions throwing on reset when paths list is empty. Added phpunit tests & readme.