Rest api tests