Sneaked in test for covariant return type narrowing in a getter method

Issue: SPR-10995
Polishing