Add a test for catching path excapes