Test fails when sent from another goroutine