writing pledge flows integration tests