fix codestyle
cleanup
handle incorrect files in settings
rework tests module,
add test for root as .zip
make test fail
make sure test is implemented properly
do not use base path as root for path rules,
extract path construction logic
implement missing toString
fix tests