add fail test case if you want to trace error
fix trace error usage
add test case
Fix traceError config
Merge branch 'feature/#6041-controller-test-exception-throwing'

Close #6041