session save to storage test case and fix