removes minute bug and added a test for it
Merge pull request #1 from haarts/master

Removes zero length bug