test(modal): add test for `controllerAs` syntax

Closes #2091