Added test case for wrapper chain. Refactored chain to become inner class of the class visitor wrapper interface.