improving rest tests