Fixed StatelessSession inserting bug +test