- Add comprehensive tests for getProjectDisplayName function
- Test various path structures including worktrees, nested projects, and edge cases
- Include regression tests for the reported bug cases
- Create separate utility file for better testability
Fixes session stats display where wrong fragments were shown
Related to: #348 (quota display), #103 (context display)