Test for the path validation.