testsensor : improve
testplugin : fix docstring
xplgw : try to add some better error handling on sensors history