add test for trace decorator