Implemented getImmediateSuperclass and some tests for it.