partial unit test function being implemented