Yes on test, incremental fashion.
But your schematic does not look right, there is no power source for the
LED emitter in the optocoupler shown. If you are getting 9 V on base of
transistor, the only way that can happen is if optocoupler is shorted input
to LED somehow. Keep in mind the top of the 1n4747, because it drops 20V,
should be 29V, where is that V coming from ?
Transistor tests.
1) Collector unconnected, apply -.1V to base, emitter grounded. Measure V
base and its current, that should roughly give you series equivalent of two
internal R's, eg. Rseries = Vbase/Ibase.
2) Base unconnected, measure ohms collector to ground, to check for short or real
low equivalent R.
3) The fact the collector of the transistor is 0V when base is at 9V tells me maybe
transistor action is roughly ok.