add unit tests for Carousel's 'wrap' option
honor wrap option in Carousel.getItemForDirection; fixes #15144
Merge pull request #15152 from twbs/fix-15144

honor wrap option in Carousel.getItemForDirection
[skip validator]