Only show Rebuild button for failed and unstarted tests