Unit test for this function wanted