add test api functionality