test atomicity