add new function testing case