Add tests for RT #76462