Similar fix from wNetty41 (DbSession and testCpuManagement)