test utils
fix rspec .raise_error deprecations