Implement and test inline menu macro substitution.