Tests warned of cement troubles before BP blowout