Analytics rest api tests fix