Add unit test for this case.