It seems that only the span attributes are captured within trace-test. However, resource attributes related to the span such as service.name, etc. are not captured or stored as part of trace-test. Therefore, currently these attributes cannot be asserted against.