Added basic tests for all remaining functions in functions.h