Add debug-on-error to tests