Add tests

Add tests for functions used in sourcegraph/go-vcs