Add regression test for preview scope.