There's a problematic testing being here:
http://github.com/HSAFoundation/HSA-Runtime-Conformance/blob/master/src/extensions/ext_api/test_hsa_ext_program_finalize.c#L414
First, the kernel in question does not define required_dim so there is not a mismatch, second, the illegal dimension 4 seems not to be defined in the specs, and finally the hsa_ext_control_directives_t contro_directive_mask is not used to enable that directive. Thus, I belive in this case the call should pass succesfully.