adding test about functions