Tests factory with NULL