attempt to have better error message in test