Add and update unit test to improve test clarity and structure
- Extracted repeated test setup into shared contexts to reduce duplication
- Clarified test descriptions to better match actual behavior being tested
- Improved naming consistency across test cases
- Ensured test descriptions accurately reflect the expected outcomes