refactor exception testing

maybe this work as well on travis as on my dev box :) it certainly
looks nicer and that make it more rubyish so thats a win.