Unit tests for  function
Unit tests for  function