Added integration tests for consuming