Test for raise in ensure