fix trace method test