more tests for setData
tests for #set method
better test for #setData
fix some jshint warnings