Remove deprecated Github API methods

and add tests
bcf209e