test extend inner class
added common function/callback interface