Testimony reveals malfunction of Titan submersible before dive