Added test for [PR 370](https://github.com/angular-ui/angular-ui/pull/370)