Unit tested the  decorator