added default parameter and unit test for recursive trait list method