Fix test_traces dependencies