rest module mock tests