To improve UT coverage of share lib OAuth


With this PR, the UT coverage for share lib OAuth is improved from 49.79% to 66.24%, the whole arrow code UT coverage is improved from 81.87% to 83.60%