fix building of erasures array, simplify test case