added some tests
jshint