[#78321518] Added missing tests for uncovered branches