Update GitHub#authorize
Add unit test for GitHub#authorize
Add docstring to helper function
Remove old test
Test GitHub#check_authorization