test decorator's scope kwarg