Adding tests and implementation for returning an http 500 res when no
access token is provided