Tests fir Rest API