added Function tests