The question has been answered in several different ways. One question of interest is whether a finitely generated group is linear (can be embedded in $GL_n({\mathbb C})$). This implies residual finiteness, by a result of Selberg. So this is one way to test for linearity.