Added a unit test to demonstrate the problem.