rest tests