IMPLEMENT TEST FOR SAVING SESSION

fix error where model template was not created