fix PyQgsVectorLayer test