updated functional api tests