Made goroutine dump testable