Add test for goroutine.