removed res.end calls missed in test/lib.rest