Activate checking code for ASM feature gate. Fix tests