add validation to config_tozk
fixed codestyle
add unittest