Adding test case for the defect MAGN-847

Deleted old branch and PR as it was having multiple commits and was confusing.

<h4>Reviewer</h4>
@Randy-Ma @riteshchandawar