make test thread only fail when necessary