refactor signature envelope sample into integration test