Moved tests from create.test to dao-factory