Fix tests RestAPI