Tests cover remainingPeriods pure function (single/split plans, boundary cases), GET/POST/GET:id/PUT/DELETE /api/financing, and PATCH /api/financing-payments/:id/paid including auto-close when fully paid. Uses mid-month dates in pure function tests to avoid UTC timezone boundary issues. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>