fix test, fix create stock device