Handler.decorator decorates functions properly