Revert "Remove block scope test"

This reverts commit 99217103ffb437bafd390becef3220d19df8db14.