Adding and testing get and set path, fixing a few warnings