Stat functions tests
init tests modified!
fixed merge