tests: fixed using of quick_exit