Testing decorator pattern