To test a transistor, you can do simple resistance tests on the various diode junctions, as illustrated here, http://www.learningaboutelectronics.com/Articles/How-to-test-a-transistor
. Measure each of the pairs of diode junctions. Collector-emitter, collector-base, base-emitter. Read the resistance of one junction and then read the same junction with the polarity probes switched. One side should read very high resistance, over 1 megohms. And the other should read a moderate resistance, a few hundred thousand ohms. If this is the case for all three junctions, the transistor should be a good working one.