Fixes test to checkout the correct version

It was time to do the todos.

Currently it ends up creating a new local branch off master. Which
is currently not working.