Add github user account option, and mock the github api for unit test