switch test5 to use main api class