Adding tests for functions.