Remove unused trait definitions in test.