Fix unit test:
throw_error_already_set function return error instead of return NULL