Extract matcher 'should have a valid factory' test