[core] Fix test runner return code