Restful api tests