Using trace in tests