Decorator example and test