Add unit tests for ready.js that relate to finishing the oauth flow.