fixed tests and jshint errors after merge

Known issue
https://github.com/valorkin/stormpath-sdk-node/commit/2e77b98d2a123013fd152a4a8271cdaf5da9b1b8#diff-45a1b5585565e689c669d724530c6fe9R200