Updated onlyIf atomicity test