small tweaks to tests, fix required option undefined logic
add clone for default value