Added init method to Path object to localise initialisation
Added tests for path init function