Added test for RT #77522.
Added test for RT #77380.