A special function assert_gpdb_load_logs_error that checks thta a specific line generates a specific error type has been added.
Now writing tests will be easyer.