Add isPathComponent tests