table driven tests for path functions