Testing proximity sensor