[SysApps] Fix a crash in unit tests