make chan before go
panic false
panic true in test case