Added a unit test for issue 81.