adapted tests to last changes (raise exception when using scope without lambda)