Testing crankshaft position sensor