Properly init mock device