add unit test for annotated properties in traits