Removed unused code in command processor
Fixed jshint unit test
Added unit tests