Fix up raise_error specs for specific error class deprecation

Signed-off-by: Sam Phippen <samphippen@googlemail.com>