add functions tests
add functions tests