FunctionalTest needs sessions

The FunctionalTest fails without sessions with this error:

    Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException:
    The service "security.csrf.token_manager" has a dependency on a non-existent service "session".