Ignore tokens if the state does not match

In order to protect against cross site request forgery, you should check the state parameter matches the one returned in the fragment.
Something weird going on here... couldn't work out if another test is causing a side effect