Add tests for path components.