Testing camshaft position sensor