Merge pull request #8 from schp/master

Fixing issue #7. Thank you for contribution!
Added a test for bug #7 about zero values