Test for checking if Github API added if present

There's probably a better way of mocking environmental variables...