Added atomicity tests