Fixed the test for the pin to 'is not None'.