added integration tests for rest api