Tests on the rest client