specs fixes: raise_last_error method