Fix local standalone mode + tests