fix rest unittest that broke due to json response changes