Membership check for an individual user is returning the incorrect results

In a previous pull request I added a check for 302 for the membership check. This is in fact incorrect. I would very much like to write a test case for this too, but the case I need to implement needs to act as authenticated user and I am obviously not keen on publishing any of my own access tokens. 

I guess we can keep the access token in an environment variable or somewhere on your file system outside of the source control. How would you like this done?