Fixed ENABLED flag
Added ENABLED flag test