add app-rest mock tests