test REST using requests