mock logger object
use validations
remove variable assignment
device field should be in the plugin
use connection_pool 2