Added a unit test for issue 81.
Merge pull request #82 from pgelinas/master

Added a unit test for issue 81.