This is a function wrapper add a test case calling it where the wrapped function is called from