check for branch coverage and fix missed branch
Merge pull request #38 from alex/add-branch-coverage

check for branch coverage and fix missed branch