fixed rest tests