better test of throwing error