[CB-3518] Unit tests unable to run with latest version of node

1. update jasmine-node to 1.7.1
2. fixed errors in test script
3. TODO: rebase and fix unit test once this pull request is merged.