Provided test case for scenario above and many others in 94dbd29fb29bf8ea05a1fd1577cd9c6826605001.