add restful tests