based on documentation -IsValid is supposed to check if the syntax of the path is correct. Anything i put for the Test-Path it always return true
Indicates that this cmdlet tests the syntax of the path, regardless of whether the elements of the path exist. This cmdlet returns $True if the path syntax is valid and $False if it is not
$val = Test-Path "sadfasdasdfasdf" -IsValid