Update tests for Factory.