added cases with volatile, synchronized and Atomic