added info and test about functions