added REST interface tests