Activate checking code for ASM feature gate. Fix tests

Suite of #9991