comply with jshint
rename a method and improve doc
empty the invalidated property array right after refresh
improve tests