add some Function tests