Added a functions test