fix #1953
small fix for testdevice