Ex-BP rig supervisor testifies at Gulf oil spill trial