add task 'make tdd'
replicate #9
add sinon
test both cases around getBranch
make the tests pass to close #9
bump version