[server][test][loop-test.sh] Remove core files when tests succeeds.