Added test case that covers the scenario in #1662

Can close #1662