oAuth - Upsert - Logout Functionality

I needed a few things that were not present. For my scenario's, this covers what I needed for oauth login, and success/failure results with upserts.

I tried to get logout working, but I can't get the body content to match the xpath expression. I'm looking for some help on this.

I have made a test that currently fails, so you can see what I'm running up against.