Engaging each gear and turning the input shaft by hand can sometimes reveal a dodgy box (ie it should turn freely and not make any crunchy noises), but apart from that it's pretty hard to gauge its condition without actually driving it or completely pulling it apart.