Fix ModelTest - forgot to close session and factory