added rest tests