Refactored: use recursion for Description-to-TestId mapping