add CreateMode::toString()
Add CreateMode::toString()
fix bug
add test cases