Testing a camshaft position sensor