Add test on trait inheritence