Added test for https://github.com/angular-ui/bootstrap/issues/1132