Proper module ref check for qa-state behavior