add test on list
add script for functional programming