Test validatePath