patch from SourceForge issue 520 was applied
adding test covering #77 change