fixed tests access token and bearer token middleware