Make bin/test return proper exit code at all times