fix dao-factory create test bug introduced from 1.7 merge