Ensure an error is throwed in object factories if implementation is not