Add ConfigureAwait(false) to all async calls. Refactor test suite to use ThrowsAsync. Fixed few tests that were failing.