[api] fix test controller for webui testsuite