tests: skip test if function is not implemented

This allows to skip certain tests if the feature is not implemented in
the driver if it raises NotImplementedError.

Change-Id: Id9848381c0ac053cb061d5557f468d336b997103