fixed setPath() method + written some tests
Merge pull request #2 from bartosz-maciaszek/master

fixed setPath() method + written some tests