The tests didnt pass but now they work. horray
The PathExpander now accepts its initialState