test rest server