If you are displaying the variable in the log and the value is there, then it is being stored. I agree with VeenaDevi that maybe you are not looking in the right test. Try adding some text to your log messages that will help distinguish one from the other.