Add tests for RT #77738