ArrayDecorator class and tests