Added inspection of declaring class name and some tests for it. Also, refactored the inspection method to return result rather than print to screen, so that it's easier to test.