test nested modal commands