Adding tests for conditional updates