Fixed PyQgsVectorLayer test