Add tests for RT #77338