test: add tests for trace to resource test case