test with traits