Fix call to hasDefine in tests.

- Updates test to use `hasDefine()` instead of `hasDefine`
- Updates bower dependencies, use exact versions.