Fixes unit test. Adds tests of Class.getComponentType()