added working unit-test for fix to issue #3