fix($tests): fix broken tests due to supposed inexistant factory

One test was testing that factory `foo` didn't exist but another test
was successfully defining it.