Integration tests for REST API