Test isStringType and isPath in similar way to production code