add unit tests to check the correct operation of the service wrapper functions under `service/functions.py`