added test for traits