Error handling in gpdb_load function and relative tests are halfway.