added test for dynamic trait