The 2015 game SOMA[1] paints a far darker picture of precisely this topic: a brain donated to research. It really explores this in depth. If you're remotely interested in games I can only recommend it.
I'd just like to chime and second the recommendation. Gameplay aside the story that it paints is amazingly well done and makes you think a lot about all the possible implications of something like that.