add test use a trait that use the accessor trait