Remove deprecated Github API methods

and add tests