Adding tests for github authorize