test decorator pattern