Fix "eval" issue and improve UT coverage for share library code

This PR fix a issue that when we add "use strict" as JSLint required, "eval(ARROW.shareLibServerSeed);" doesn't work.

And we added some tests to improve code coverage of share library code.

The OAuth lib UT coverage is still under 50%, will be improved latter.