add timeout for testApi.go