BP to test new cap to stem oil flow