Added tests for volatile