Refactored short_path method and created separate test suite.
Removed short_path tests, they were moved to their own file.