fix materialAmount and test
fix test of aroundMaterialAmount