fix devicepluginmock