test trace method