This patch adds some positive and failure tests for init and shutdown directives.
There is no written restriction about the if clause on most directives but this is kind of an implicit one since there is also no rule how two if condition would be combined together. Do you combined them with a logical OR or a logical AND. Since the clause takes a condition expression one can combined multiple conditions together in a single if clause.
I have discussed this point with some member of the spec committee and it is not really well defined currently. This will be addressed in future version of the spec but the intention is to allow only a single if clause on all directives.