Fixes travis build error.

- Includes Grzegorz Ziolkowski's fix for the travis build.
- Fixes the setupComponent function to work with nested mocha contexts.