improve test for alloy