Fixed jshint errors.
DP-3282 Fixed unit tests.