testing raise_error for release method