fixed setPath() method + written some tests